<extend name="Public/common" />
<block name="body">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <tr>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="__APP__/Member/memberList" style="font-size: 18px;font-weight: 600;" id="z1">用户列表</a>&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="__APP__/Member/fankui" style="font-size: 18px;font-weight: 600;color: #575757;" id="z2">留言反馈</a>&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="__APP__/Doc/user_money" style="font-size: 18px;font-weight: 600;color: #575757;" id="z3">财务明细</a>&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="__APP__/Doc/user_tixian" style="font-size: 18px;font-weight: 600;color: #575757;" id="z4">提现申请</a>&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="__APP__/Doc/user_shangjia" style="font-size: 18px;font-weight: 600;color: #575757;" id="z5">用户商品</a>&nbsp;&nbsp;&nbsp;&nbsp;
            </td>
        </tr>
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>用户列表</h5>
                    <h5 style="float: right;"><a href="javascript:location.reload();"><i class="fa fa-refresh"></i></a></h5>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-3" style="float: right;">
                            <!-- <div class="input-group">
                                <input type="text" placeholder="请输入姓名" class="input-sm form-control"> <span class="input-group-btn">
                                <button type="button" class="btn btn-sm btn-primary"> 搜索</button> </span>
                            </div> -->
                        </div>
                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped">
                            <thead>
                         	<tr>
                                <th></th>
                                <th>ID</th>
                         		<th>账号</th>
                         		<th>邮箱</th>
                         		<th>手机号</th>
                         		<th>qq号</th>
                         		<th>账户状态</th>
                         		<th>创建时间</th>
                         		<th>最后一次登陆时间</th>
                         		<th>操作</th>
                         	</tr>
                            </thead>
                            <tbody>
                                <foreach name="memberlist" item="v">
                         		<tr>
                                    <td>
                                        <input type="checkbox" class="i-checks" name="id[]" value="{$v.uid}">
                                    </td>
                         			<th>{$v.uid}</th>
                         			<th>{$v.name}</th>
                         			<th>{$v.email}</th> 
                         			<th>{$v.phone}</th> 
                         			<th>{$v.qq}</th>
                                        <th>
                                            <if condition="$v['status']==0">
                                                正常
                                                <else/>
                                                被删
                                            </if>
                                        </th>
                         			<th>{$v.create_time|retime}</th>
                         			<th>{$v.last_login_time|retime}</th>
                                    <td>
                                        <a href="{:U('Member/detailMember',['id'=>$v['uid']])}"><button type="button" class="btn btn-outline btn-primary btn-xs">详情</button></a>
                                        <a href="{:U('Member/editMember',['id'=>$v['uid']])}"><button type="button" class="btn btn-outline btn-default btn-xs">编辑</button></a>
                                        <a href="{:U('User/delete',['id'=>$v['uid'],'tableName'=>'userbase'])}" class="ajax-delete"><button type="button" class="btn btn-outline btn-warning btn-xs">删除</button></a>                                    </td>
                                    </td>
                                 </tr> 
                            	 </foreach> 
                           </tbody>                         
                        </table>
                    </div>
                    <div style="text-align: center;">{$page}</div>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="__JS__/http/ajax.js"></script>
</block>